package com.xbongbong.paas.pojo.dto;

import com.xbongbong.paas.toolbox.wrap.BaseDTO;
import com.xbongbong.paas.toolbox.wrap.QueryIgnore;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * 导入覆盖表单数据
 *
 * @author wufeng
 * @date 2018/9/26 15:06
 */
@Getter
@Setter
@ToString
public class CoverFormDataDTO extends BaseDTO {

    private static final long serialVersionUID = 568483934387282360L;

    @NotNull(message = "{dto.msg.coverFormData.appId.NotNull}")
    private Long appId;

    @NotNull(message = "{dto.msg.coverFormData.formId.NotNull}")
    private Long formId;

    @NotNull(message = "{dto.msg.coverFormData.menuId.NotNull}")
    private Long menuId;

    /**
     * SaaS标志
     *
     * @see com.xbongbong.pro.enums.SaasMarkEnum
     */
    @Getter(onMethod_ = {@QueryIgnore})
    private Integer saasMark;

    /**
     * Saas业务类型，详见
     *
     * @see com.xbongbong.saas.enums.XbbRefTypeEnum
     */
    @Getter(onMethod_ = {@QueryIgnore})
    private Integer businessType;

    /**
     * Saas子业务类型，详见
     *
     * @see com.xbongbong.saas.enums.XbbRefTypeEnum
     */
    @Getter(onMethod_ = {@QueryIgnore})
    private Integer subBusinessType;

    /**
     * 是否覆盖导入
     */
    @Getter(onMethod_ = {@QueryIgnore})
    private Integer isCover;
    /**
     * 部分字段导入
     */
    @Getter(onMethod_ = {@QueryIgnore})
    private List<String> attrList;

    /**
     * 是否为带附件字段导入,0不是，1是的
     */
    @Getter(onMethod_ = {@QueryIgnore})
    private Integer isFileImport;

}
